<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<body>
<h2>Hello World!</h2>
<P><a href="/user/toadd.action">success</a></P>
<p><a href="/toShowDept.action">To Dept</a></p>
<form method="post" action="tologin.action">
    <div>
        <label>用户名</label>
        <label>
            <input type="text" name="userName">
            <h1 style="color: red"><s:fielderror fieldName="NameError"/></h1>
        </label>
    </div>
    <div>
        <label>密码</label>
        <label>
            <input type="text" name="password">
        </label>
    </div>
    <div><input type="submit" value="submit"></div>
</form>

</body>
</html>
